SET currentDir="%~dp0"
cd /d "%currentDir%"

call antlr XMLLexer.g4
call antlr XMLParser.g4

call compile gen\XML*.java

call grun XML document books.xml

call grun XML document books.xml -tokens

call grun XML document books.xml -gui
pause